//---------------------------------------------------------------------------

#ifndef UPR_INTERFH
#define UPR_INTERFH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "cxButtons.hpp"
#include "cxGraphics.hpp"
#include "cxLookAndFeelPainters.hpp"
#include "cxLookAndFeels.hpp"
#include <ActnList.hpp>
#include <ExtCtrls.hpp>
#include <Menus.hpp>
#include "cxContainer.hpp"
#include "cxControls.hpp"
#include "cxEdit.hpp"
#include "cxGroupBox.hpp"
#include "cxClasses.hpp"
#include "cxCustomData.hpp"
#include "cxData.hpp"
#include "cxDataStorage.hpp"
#include "cxDBData.hpp"
#include "cxFilter.hpp"
#include "cxGrid.hpp"
#include "cxGridCustomTableView.hpp"
#include "cxGridCustomView.hpp"
#include "cxGridDBTableView.hpp"
#include "cxGridLevel.hpp"
#include "cxGridTableView.hpp"
#include "cxStyles.hpp"
#include <DB.hpp>
#include <DBCtrls.hpp>
#include <Mask.hpp>
#include "DBAccess.hpp"
#include "IBC.hpp"
#include "MemDS.hpp"
//---------------------------------------------------------------------------
class TfrUPR_INTERF : public TForm
{
__published:	// IDE-managed Components
	TPanel *pTable;
	TPanel *pEdit;
	TPanel *pUpr;
	TcxButton *btADD;
	TcxButton *btSAVE;
	TActionList *ActionList1;
	TAction *ADD_INT;
	TAction *SAVE_INT;
	TcxGroupBox *gbTable;
	TcxGroupBox *gbEdit;
	TcxGrid *sgUPR_INTERF;
	TcxGridDBTableView *cxGridDBTableView1;
	TcxGridLevel *cxGridLevel1;
	TcxGridDBColumn *KOD_INTERF;
	TcxGridDBColumn *TIP_MENU;
	TcxGridDBColumn *NAZV;
	TcxGridDBColumn *PRAVA;
	TLabel *Label5;
	TLabel *Label6;
	TLabel *Label1;
	TComboBox *cbTIP_MENU;
	TComboBox *cbNAZV;
	TComboBox *cbDOSTUP;
	TcxButton *btPROSMOTR;
	TAction *PROSMOTR;
	TCheckBox *chVSE_OBJCT;
	TIBCQuery *dsetUPR_INTERF;
	TIBCQuery *dsetKOD_MENU;
	TIBCDataSource *dsUPR_INTERF;
	TIBCDataSource *dsKOD_MENU;
	void __fastcall FormKeyPress(TObject *Sender, char &Key);
	void __fastcall cbTIP_MENUChange(TObject *Sender);
	void __fastcall cxGridDBTableView1CellClick(TcxCustomGridTableView *Sender,
          TcxGridTableDataCellViewInfo *ACellViewInfo, TMouseButton AButton,
          TShiftState AShift, bool &AHandled);
	void __fastcall SAVE_INTExecute(TObject *Sender);
	void __fastcall ADD_INTExecute(TObject *Sender);
	void __fastcall cbTIP_MENUKeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
	void __fastcall cbNAZVKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall cbDOSTUPKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall PROSMOTRExecute(TObject *Sender);
	void __fastcall FormShow(TObject *Sender);
private:	// User declarations
public:		// User declarations
String INTERF;
int KOD_INT;
	__fastcall TfrUPR_INTERF(TComponent* Owner);
	void __fastcall TfrUPR_INTERF::Obnovi();
	void __fastcall TfrUPR_INTERF::NAZV_MENU();
};
//---------------------------------------------------------------------------
extern PACKAGE TfrUPR_INTERF *frUPR_INTERF;
//---------------------------------------------------------------------------
#endif
